package com.briup.demo;

import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

//加了这个注解之后，这个类在编译的时候
// 会自动生成getter、setter、equals、hashcode、toString方法
//@Data不会生成构造器
//@Getter
//@Setter
//@ToString
//@EqualsAndHashCode
@NoArgsConstructor  //无参构造器
@AllArgsConstructor //全参构造器
@Data
public class User {

    private Integer id;
    private String name;
    private Short age;
    //1男 2女
    private Short gender;
    private String phone;
    //出生日期
    private LocalDate birthday;
    //注册时间
    private LocalDateTime registerTime;

//    private LocalDateTime startTime;
//    private LocalDateTime endTime;


}

